*/
guint default_is_geometry : 1;
- /* if true, resize_width, height should be multiplied by the
- * increments and affect the geometry widget only
- */
- guint resize_is_geometry : 1;
-
GtkWindowLastGeometryInfo last;
};
info->resize_width = width;
info->resize_height = height;
- info->resize_is_geometry = FALSE;
gtk_widget_queue_resize_no_redraw (GTK_WIDGET (window));
}
* gtk_window_set_geometry_hints.
*
* Since: 3.0
+ *
+ * Deprecated: 3.20: This function does nothing. Use
+ * gtk_window_resize() and compute the geometry yourself.
*/
void
gtk_window_resize_to_geometry (GtkWindow *window,
gint width,
gint height)
{
- GtkWindowGeometryInfo *info;
-
g_return_if_fail (GTK_IS_WINDOW (window));
g_return_if_fail (width > 0);
g_return_if_fail (height > 0);
-
- info = gtk_window_get_geometry_info (window, TRUE);
-
- info->resize_width = width;
- info->resize_height = height;
- info->resize_is_geometry = TRUE;
-
- gtk_widget_queue_resize_no_redraw (GTK_WIDGET (window));
}
/**
*width = resize_width_csd;
if (info->resize_height > 0)
*height = resize_height_csd;
-
- if (info->resize_is_geometry)
- geometry_size_to_pixels (geometry, flags,
- info->resize_width > 0 ? width : NULL,
- info->resize_height > 0 ? height : NULL);
}
/* Don't ever request zero width or height, it's not supported by